# set terminal windows 
# set output
set encoding iso_8859_1
set samples 100
set size 0.8,0.8
set dummy n, o
set tics out

xmin=0; xmax=20
ymin=0; ymax=80

set title "Grafico"
set xlabel "Eje x"
set xlabel "Deflection {/Symbol D}_x (m)"
set ylabel "Eje y"

set xrange [xmin:xmax]
set autoscale y
set xtics nomirror 1
set mxtics 10
set ytics nomirror ymin,15,ymax

# set grid
set border 3
# set key 0,100
# set time

set label "S" at graph 0.5,0.5 center font "Symbol,24"
set label 3 "y=x^2" at 2,3,4 right
set label "cuatro" at 4,4
set arrow from 0,1 to 3.9,3.9

k=4
q(x) = x**2

xleg=xmax*1.01
set label "k" at xleg,k left
set label "log n" at xleg,log(xmax) left
set label "n ^1/2" at xleg,xmax**0.5 left
set label "n" at xleg,xmax left


plot [n=xmin:xmax] [ymin:ymax] \
	k title "k", \
	n title "n", \
	n*log(n) title "n log(n)", \
	q(n)/2 title "n^2/2", \
	"-" smooth csplines title "curve" with lines, \
	2*q(n) title "2n^2", \
	2**n title "2^n", \
	n**n title "n^n"
0 0
1 4
2 1
3 6
4 16
6 40
8 60
10 100
EOF
#    EOF
